<?php
declare (strict_types = 1);

namespace app\controller\v1;

use app\exception\Succ;
use app\model\Data\UserData;
use app\validate\UserValid;

class User  
{

    /**
     * 注册接口
     *
     * @api \v1
     * @return void
     */
    public function regist()
    {
        $param = (new UserValid)->goCheck('regist');
        $data = (new UserData)->regist($param);
        throw new Succ($data);
    }
}
